POV-Ray : Newsgroups : povray.advanced-users : Random variation : Re: Random variation Server Time
29 Jul 2024 14:15:51 EDT (-0400)
  Re: Random variation  
From: Warp
Date: 27 Sep 2002 06:36:33
Message: <3d9434b1@news.povray.org>
Mark Wagner <mar### [at] gtenet> wrote:
> Because of the way that POV-Ray's random number generator works, it will
> never produce the same number twice in a row (if it did, it would then
> proceed to produce that number every single time).

  Then it's a rather poor random number generator, I must say.
  In a good random number generator, any combination of two numbers (including
the same number twice) should be about equally probable.
  Of course this is a very difficult issue.

  I wonder if an approach like the drand48() function would be better.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.